﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ICalendar.CalendarProperties
{
    /// <summary>
    /// The property defines the intended venue for the activity defined by a calendar component.
    /// </summary>
    [XmlRoot("location")]
    [Serializable]
    public class Location : TextBase
    {
        public Location(string text)
            : base(text)
        {
        }

        public Location(string text, CultureInfo language, Uri alternateTextRepresentation)
            : base(text, language, alternateTextRepresentation)
        {
        }

        public static implicit operator Location(string text)
        {
            return new Location(text);
        }
    }
}
